<fieldset><legend>搜索档案</legend>
<form action="" method="POST">
	名字：<input type="text" name="key" id="key" value="{$key}" >
	<input type="button" onclick="this.form.reco_page.value=1;this.form.submit();" value="搜索" class="log2" align="right">

	<br><span id="nothing" style="color:red">{$nothinghint}</span>
	<input type="hidden" id="reco_cur_page" name="reco_cur_page" value={$reco_cur_page} />
	<input type="hidden" id="reco_page" name="reco_page" value={$reco_cur_page} />
	
	<table  cellpadding="1" border="0" width="100%">
		{section name=nr loop=$reco_userlist}
			<tr >	
				<td style="border-bottom:1px solid #ccc;"><a href = "user.php?login={$reco_userlist[nr].user_login}" target="_blank"><img src="{$reco_userlist[nr].Avatar}" align="absmiddle"/> {$reco_userlist[nr].user_names}</a></td>
				<td style="border-bottom:1px solid #ccc;">由<a href="user.php?uid={$reco_userlist[nr].submitter_id}" target="_blank">{$reco_userlist[nr].submitter_names}</a>首次推荐</td>
				<td style="border-bottom:1px solid #ccc;"><img src="{$my_pligg_base}/templates/{$the_template}/images/key.gif" /><a href="javascript:" onclick="document.getElementById('declare_user').innerHTML = '{$reco_userlist[nr].user_names}';
document.getElementById('receiver_names').innerHTML = '{$reco_userlist[nr].submitter_names}';
document.getElementById('receiver_names2').innerHTML = '{$reco_userlist[nr].submitter_names}';
document.getElementById('receiver').value = {$reco_userlist[nr].submitter_id};
document.getElementById('profile').value = {$reco_userlist[nr].user_id};
document.getElementById('profilename').value = '{$reco_userlist[nr].user_names}';
document.getElementById('declare_profile').style.display = '';
window.location.href='#a-declare_profile'">我要认领</a></td>
			</tr>
			
		{/section}
	</table>
	{if isset($reco_user_pagination)}{$reco_user_pagination}{/if}

</fieldset>
<fieldset><legend>未启用档案清单</legend>
	<input type="hidden" id="cur_page" name="cur_page" value={$cur_page} />
	<input type="hidden" id="page" name="page" value={$cur_page} />
	<table  cellpadding="1" border="0" width="100%">
			{section name=nr loop=$userlist}
			<tr >	
				<td style="border-bottom:1px solid #ccc;"><a href = "user.php?login={$userlist[nr].user_login}" target="_blank"><img src="{$userlist[nr].Avatar}" align="absmiddle"/> {$userlist[nr].user_names}</a></td>
				<td style="border-bottom:1px solid #ccc;">由<a href="user.php?uid={$userlist[nr].submitter_id}" target="_blank">{$userlist[nr].submitter_names}</a>首次推荐</td>
				<td style="border-bottom:1px solid #ccc;"><img src="{$my_pligg_base}/templates/{$the_template}/images/key.gif" /><a href="javascript:" onclick="document.getElementById('declare_user').innerHTML = '{$userlist[nr].user_names}';
document.getElementById('receiver_names').innerHTML = '{$userlist[nr].submitter_names}';
document.getElementById('receiver_names2').innerHTML = '{$userlist[nr].submitter_names}';
document.getElementById('receiver').value = {$userlist[nr].submitter_id};
document.getElementById('profile').value = {$userlist[nr].user_id};
document.getElementById('profilename').value = '{$userlist[nr].user_names}';
document.getElementById('declare_profile').style.display = '';
window.location.href='#a-declare_profile'">我要认领</a></td>
			</tr>
			
			{/section}
		</table>
	{if isset($user_pagination)}{$user_pagination}{/if}
</fieldset>

<a id="a-declare_profile"></a>
<div style="display:none" id="declare_profile">
<fieldset><legend>填写认领信息</legend>
	<span style="color:#ccc">系统将发送您填写的认领信息给<span id="declare_user"></span>的首次推荐者<span id="receiver_names"></span></span><br>
	<span id="send_msg_hint"></span>
	<input type="hidden" id="receiver" value=0 />
	<input type="hidden" id="profile" value=0 />
	<input type="hidden" id="profilename" value='' />
	</form>
	<br>您的邮件:&nbsp;&nbsp;<input type="text" id="email" name="email"></input><span style="color:#ccc">用于接收档案的用户名和密码</span>
	<label>发送给<span id="receiver_names2"></span>的认领信息:</label>
	<textarea rows="14" cols="68" id="send_msg_content" name="send_msg_content" /></textarea><br/>			<br>
	<input type="button" value=" 发送 " onclick="sendprofreq('档案认领请求',document.getElementById('receiver').value,1,0,document.getElementById('profile').value,getElementById('profilename').value)" class="log2"/>
</fieldset>
</div>
